package com.middle.common.result;

import java.util.List;

/**
 * 用户信息
 * @author KING
 *
 */
public class UserInfo<M,R> {
	
	private Long userId;
	
	private String realName;
	
	private String avatar;
	
	/**
	 * 菜单
	 */
	private List<M> menus;
	/**
	 * 权限
	 */
	private List<String> permissions;
	/**
	 * 角色
	 */
	private List<R> roles;
	
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public String getRealName() {
		return realName;
	}
	public void setRealName(String realName) {
		this.realName = realName;
	}
	public String getAvatar() {
		return avatar;
	}
	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}
	public List<M> getMenus() {
		return menus;
	}
	public void setMenus(List<M> menus) {
		this.menus = menus;
	}
	public List<String> getPermissions() {
		return permissions;
	}
	public void setPermissions(List<String> permissions) {
		this.permissions = permissions;
	}
	public List<R> getRoles() {
		return roles;
	}
	public void setRoles(List<R> roles) {
		this.roles = roles;
	}

}
